.class public final Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;
.super Ljava/lang/Object;
.source "PcsFileSystem.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/fs/impl/pcs/PcsFileSystem;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = "d"
.end annotation


# instance fields
.field public a:Z

.field public b:Z

.field public c:Ljava/lang/String;

.field public d:[Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;->a:Z

    .line 3
    iput-boolean v0, p0, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;->b:Z

    return-void
.end method

.method public static a()Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;
    .locals 2

    .line 1
    new-instance v0, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;

    invoke-direct {v0}, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;-><init>()V

    const/4 v1, 0x0

    .line 2
    iput-boolean v1, v0, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;->a:Z

    return-object v0
.end method

.method public static a(Ljava/util/Map;)Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;
    .locals 6

    const-string v0, "errno"

    .line 3
    invoke-interface {p0, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    .line 4
    instance-of v1, v0, Ljava/lang/Long;

    if-eqz v1, :cond_2

    const-wide/16 v1, 0x2

    .line 5
    check-cast v0, Ljava/lang/Long;

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v3

    cmp-long v5, v1, v3

    if-nez v5, :cond_0

    .line 6
    invoke-static {p0}, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;->b(Ljava/util/Map;)Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;

    move-result-object p0

    return-object p0

    :cond_0
    const-wide/16 v1, 0x0

    .line 7
    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v3

    cmp-long v0, v1, v3

    if-nez v0, :cond_1

    .line 8
    invoke-static {p0}, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;->b(Ljava/util/Map;)Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;

    move-result-object p0

    return-object p0

    .line 9
    :cond_1
    invoke-static {}, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;->a()Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;

    move-result-object p0

    return-object p0

    .line 10
    :cond_2
    invoke-static {}, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;->a()Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;

    move-result-object p0

    return-object p0
.end method

.method private static b(Ljava/util/Map;)Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;
    .locals 7

    .line 1
    new-instance v0, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;

    invoke-direct {v0}, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;-><init>()V

    const-string v1, "return_type"

    .line 2
    invoke-interface {p0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    .line 3
    instance-of v2, v1, Ljava/lang/Long;

    if-eqz v2, :cond_5

    const-wide/16 v2, 0x2

    .line 4
    check-cast v1, Ljava/lang/Long;

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    const/4 v1, 0x1

    cmp-long v6, v2, v4

    if-nez v6, :cond_0

    const-string v2, "info"

    .line 5
    invoke-interface {p0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    if-eqz v2, :cond_0

    .line 6
    iput-boolean v1, v0, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;->b:Z

    .line 7
    iput-boolean v1, v0, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;->a:Z

    return-object v0

    :cond_0
    const-string v2, "uploadid"

    .line 8
    invoke-interface {p0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    if-nez v2, :cond_1

    return-object v0

    .line 9
    :cond_1
    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v0, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;->c:Ljava/lang/String;

    const-string v2, "block_list"

    .line 10
    invoke-interface {p0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    .line 11
    instance-of v2, p0, Lorg/json/simple/JSONArray;

    if-eqz v2, :cond_4

    .line 12
    check-cast p0, Lorg/json/simple/JSONArray;

    .line 13
    invoke-virtual {p0}, Ljava/util/ArrayList;->size()I

    move-result v2

    const/4 v3, 0x0

    if-nez v2, :cond_2

    new-array p0, v1, [Ljava/lang/String;

    const-string v2, "0"

    aput-object v2, p0, v3

    .line 14
    iput-object p0, v0, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;->d:[Ljava/lang/String;

    goto :goto_1

    .line 15
    :cond_2
    new-array v4, v2, [Ljava/lang/String;

    :goto_0
    if-ge v3, v2, :cond_3

    .line 16
    invoke-virtual {p0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v5

    aput-object v5, v4, v3

    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    .line 17
    :cond_3
    iput-object v4, v0, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;->d:[Ljava/lang/String;

    .line 18
    :goto_1
    iput-boolean v1, v0, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;->a:Z

    return-object v0

    .line 19
    :cond_4
    invoke-static {}, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;->a()Lcom/estrongs/fs/impl/pcs/PcsFileSystem$d;

    move-result-object p0

    return-object p0

    :cond_5
    return-object v0
.end method
